//
// Created by 12992 on 24-10-15.
//

#ifndef MEDIA_TRANSCODER_IMAGEWIDGET_H
#define MEDIA_TRANSCODER_IMAGEWIDGET_H

#include <QWidget>
#include <QImage>
#include <QPixmap>

namespace gui::widgets
{

    class ImageWidget
            : public QWidget
    {
    public:
        explicit ImageWidget(const QImage& image, QWidget* parent = nullptr);

        explicit ImageWidget(QPixmap image, QWidget* parent = nullptr);

        ~ImageWidget() override = default;

    protected:
        void paintEvent(QPaintEvent* event) override;

    private:
        QPixmap image;
    };

} // widgets
// gui

#endif //MEDIA_TRANSCODER_IMAGEWIDGET_H
